package com.dhcc.service;

import java.util.List;

import com.dhcc.model.Student;
import com.dhcc.model.Teacher;
import com.dhcc.model.User;
import com.dhcc.model.UserInsert;

public interface UserService {
	
	public void save(User user);

    public void update(User user);

    public void delete(User user);

    public User get(Long id);

    public List<User> query();

	public Student findStudentByUserId(int id);

	public User findUserByUserId(int userId);

	public void upStudent(Student s);

	public void upUser(User u);

	public List<Student> selectStudent(int page);

	public List<Teacher> selectTeacher(int page);

	public void insertTeacher(UserInsert insert);

	public void insertStudent(UserInsert insert);
    
    
}
